﻿<template>
    <div>
        <h2 @click="showName" class="sn">学生信息:{{name}}</h2>
        <h2>学生性别:{{sex}}</h2>
    </div>
</template>

<script>
    import {mixin,hunhe} from '../mixin.js'
    export default{
        name: 'Student',
        components:{},
        data(){
            console.log(this)
            return{
                name: '张三',
                sex: '男',
            }
        },
        mixins:[mixin,hunhe],
        mounted() {
            console.log('你好啊!!!!')
        },
    }
</script>

<style>
.sn{
    cursor: pointer;
}
</style>